/*
 * This class is for object adapter method.it new a class Bigger 
 * for its' method public boolean bigger(int a,int b);
 * 
 * public:
 * 		public boolean bigger(char a[],char b[]);
 * 
 */
package adapter;

public class ObjectAdapter {
	public boolean bigger(char a[],char b[])
	{
		boolean bigger = false;//flag for result
		
		//new a object so that we can use its' method
		Bigger big = new Bigger();
		
		//translate char to integer
		Integer na = Integer.parseInt(new String(a));
		Integer nb = Integer.parseInt(new String(b));
		
		//use Bigger's method to get the result
		bigger = big.bigger(na, nb);
		
		return bigger;
	}
}
